package com.gitee.wsl.scheduler.job.repository

import com.gitee.wsl.scheduler.job.bean.JobLock
import kotlin.uuid.ExperimentalUuidApi
import kotlin.uuid.Uuid

interface LockRepository {

    @OptIn(ExperimentalUuidApi::class)
    suspend fun ping(id: Uuid): JobLock

    @OptIn(ExperimentalUuidApi::class)
    suspend fun exists(id: Uuid): Boolean

    companion object
}